package com.wydexcel.generate.process.context;

import com.alibaba.fastjson.JSON;
import com.wydexcel.generate.common.ConvenientExcelUtil;
import com.wydexcel.generate.properties.s.ExcelBass;

import java.util.HashMap;
import java.util.Map;

public class ExcelExportFactory {


    private final Map<String, ExcelBass> register = new HashMap<>();


    public static void register(String json) {
        ExcelBass excelBass = ConvenientExcelUtil.parseObject(json, ExcelBass.class);
    }


    public static void main(String[] args) {
        ExcelBass excelBass = new ExcelBass();
        excelBass.setFieldName("fff");
        excelBass.setType("base");
        ExcelBass excelBass1 = ConvenientExcelUtil.parseObject(JSON.toJSONString(excelBass), ExcelBass.class);
        System.out.println(JSON.toJSONString(excelBass1));
    }


}
